/**
 * @file svgToFont.js
 * @author cy
 * @createTime 2019-01-14 13:46:07
 * @description svg转字体图标
 * 使用方法：在 sap-uil 目录下执行 node svgToFont.js
 */
const WebpackIconfontPluginNodejs = require('webpack-iconfont-plugin-nodejs')
const path = require('path')
const options = {
  fontName: 'saasIcon',
  template: path.resolve(__dirname, '../template/css.njk'),
  svgs: path.resolve(__dirname, '../svg/*.svg'),
  fontsOutput: path.resolve(__dirname, '../saasIcon'),
  cssOutput: path.resolve(__dirname, '../saasIcon/iconStyle.css'),
  jsOutput: path.resolve(__dirname, '../saasIcon/icon.js'),
  htmlOutput: path.resolve(__dirname, '../saasIcon/icon-demo.html'),
  cssPrefix: 'saas-icon'
}

new WebpackIconfontPluginNodejs(options).build()
